<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>后台管理主页</title>
		<link rel="stylesheet" type="text/css" href="/css/manager.css" />
		<script src="/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="/js/manager_siderlist.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				//勾选全选
				$("#checkAll").click(function(){
					$("input[name*=checkitem]").prop('checked', this.checked);
				});
			});
		</script>
	</head>

	<body>
		<div id="container">
			<!--顶部-->
			<% include ../template/manager_header.html %>
			<!--内容-->
			<div id="content">
				<div class="top_nav">
					<a href="#">管理首页</a>>>
					<a href="#">XX管理</a>>>
					<a href="#">XX页面</a>
				</div>
				<div class="content_panel clearfix">
					<!--侧边管理链接-->
					<% include ../template/manager_siderlist.html %>
					<div class="panel_right fr">

						<div class="panel_list">
							<table id="list_style">
								<thead>
									<tr>
										<th class="width50">全选<input type="checkbox" name="checkAll" id="checkAll" value="" /></th>
										<th class="width50">编号</th>
										<th>产品名称</th>
										<th class="price">产品实价</th>
										<th class="price">产品原价</th>
										<th class="operation">操作</th>
									</tr>
								</thead>
								<tbody>
									<%for(i=0;i<goodslist.length;i++){%>
									<tr>
										<td><input type="checkbox" name="checkitem" value="" /></td>
										<td><%=goodslist[i].product_Id%></td>
										<td><%=goodslist[i].product_name%></td>
										<td><%=goodslist[i].new_price%></td>
										<td class="old_price"><%=goodslist[i].old_price%></td>
										<td>
											<a href="/manager/modify_product/<%=goodslist[i].product_Id%>">编辑</a>
											<a href="#">删除</a>
										</td>
									</tr>
									<%}%>
								</tbody>
								<tfoot>
									<tr>
										<td colspan="6">
											<a href="/manager/manager_productlist/<%=previouspage%>">上一页</a>
											<a href="/manager/manager_productlist/<%=nextpage%>">下一页</a> 第<%=currentpage%>页/共<%=pageSum%>页</td>
									</tr>
								</tfoot>
							</table>
						</div>
						<div class="add_list">

						</div>
					</div>
				</div>
			</div>
			<!--底部-->
			<% include ../template/manager_footer.html %>
		</div>

	</body>

</html>